#include "server.hpp"

void Usage()
{
    std::cout<<"Usage: "<< " port"<<std::endl;
}

std::string handle(const std::string& s)
{
    return "Server recv:" + s;
}
int main(int argc,char* argv[])
{
    if(argc != 2)
    {
        Usage();
        return 1;
    }

    uint16_t port = atoi(argv[1]);
    server svr(port, handle);
    svr.run();
    return 0;
}

